import random

import pygame

from actor.walk_soldier import WalkSoldier, AWalkSoldier


class OtherCharacter(WalkSoldier):
    def __init__(self, x, y):
        soldier_id = random.randint(1, 4)  # random是python里产生随机数的语句
        walk_image_path = "resources/images/japanese/soldier{0}.png".format(soldier_id)
        super(OtherCharacter, self).__init__(walk_image_path, x, y, "小日本" + str(soldier_id), 100)

        self.key = pygame.K_DOWN
        self.count = 5


class AOtherCharacter(AWalkSoldier):
    def __init__(self, x, y):
        super(AOtherCharacter, self).__init__("resources/images/chinese/militia/boy1.png", x, y, "其他角色", 100)

        self.key = pygame.K_DOWN
        self.count = 5